#ifndef TILE_HPP
# define TILE_HPP

# include <QPixmap>
# include <QPainter>
# include <QString>
# include "Object2D.hpp"

# define TILE_SIZE      (64)

class Tile: public Object2D
{
public:
    Tile();
    Tile(QString const& name, QPixmap* pixmap, const int positionX, const int positionY);

    void            draw(QPainter& painter, const int mapPositionX, const int mapPositionY);

    void            setPixmap(QPixmap* pixmap);

private:
    QPixmap*    _pixmap;
};

#endif // TILE_HPP
